const expressjwt=require('express-jwt');
const {token} =require('../config');
module.exports=(app)=>{
    app.use(expressjwt.expressjwt({
        secret: token.secretKey,
        algorithms: ['HS256']
      }).unless(
        { path: [/^\/api\//, '/', /^\/static\//, /^\/assets\//,'/vite.svg'] }
      ));
}